package com.wyix;


import com.wyix.entity.PetPoke;

/**
 * @author wangdx
 * @date 2025/8/1
 * @description
 */
public class PetPokeGame {
    public static void main(String[] args) {
        // 领养一只小精灵
        PetPoke pikachu = new PetPoke("皮卡丘", (byte) 1, (short) 10, 100L, 5.0F, 'A', true);
        System.out.println("你领养了一只可爱的 " + pikachu.name + "！");

        // 喂养小精灵
        pikachu.feed(20);
        System.out.println(pikachu.name + " 吃饱啦，现在等级是 " + pikachu.level + " 级！");

        // 小精灵战斗
        boolean isWin = pikachu.battle(80);
        if (isWin) {
            System.out.println(pikachu.name + " 战斗胜利，获得了经验值，现在经验值是 " + pikachu.experience + "！");
        } else {
            System.out.println(pikachu.name + " 战斗失败，继续加油哦！");
        }
    }
}
